class A {
    def foo = new B().bar(null)
}
